#!/bin/sh

if [ ! -e bin ]
then
  mkdir bin
fi

cd bin

cmake ..
if [ "$?" != "0" ]; then
  exit 1
fi

make
if [ "$?" != "0" ]; then
  exit 1
fi

./opencv_example
